package com.example.yiparkapplication.activity.index.activity.discountCard;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import com.example.yiparkapplication.R;
import com.example.yiparkapplication.entity.MonthCard;

import java.util.List;

public class BoughtCardAdepter extends RecyclerView.Adapter<BoughtCardAdepter.ViewHolder> {
    private List<MonthCard> mMonthCardList;
    private DiscountCardActivity mDiscountCardActivity;

    static class ViewHolder extends RecyclerView.ViewHolder{
        public ViewHolder(View view){
            super(view);
        }
    }

    public BoughtCardAdepter(List<MonthCard> monthCard, DiscountCardActivity discountCardActivity){
        mMonthCardList = monthCard;
        mDiscountCardActivity = discountCardActivity;
    }

    @Override
    public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType){
        View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.fragment_bought_card_layout, parent, false);
    }

    @Override
    public int getItemCount(){
        return mMonthCardList.size();
    }

}
